#!/bin/sh
# schedule_msg.sh <time> <msg>
# <time> now+1min	16:34		see at for details
# <msg> "must be handled as a single argument"
#
# configuration
#	gst-launch-0.10 filesrc location=/path/to/file/beep.mp3 ! mad ! audioconvert ! audioresample ! alsasink
#	gst-launch-0.10 filesrc location= /usr/share/sounds/phone.wav ! wavparse ! audioconvert ! audioresample ! alsasink

at $1 <<EOINPUT
export DISPLAY=":0.0"
zenity --info --text="$*" & 
gst-launch-0.10 filesrc location= /usr/share/sounds/phone.wav ! wavparse ! audioconvert ! audioresample ! alsasink &
EOINPUT

